.class public Lcom/jecelyin/common/app/JecActivity;
.super Landroidx/appcompat/app/AppCompatActivity;
.source "JecActivity.java"

# interfaces
.implements Lcom/jecelyin/editor/v2/ui/d;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/jecelyin/common/app/JecActivity$a;
    }
.end annotation


# instance fields
.field a:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/jecelyin/common/app/JecActivity$a;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Landroidx/appcompat/app/AppCompatActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/jecelyin/common/app/JecActivity;->a:Ljava/util/ArrayList;

    return-void
.end method


# virtual methods
.method protected a(Landroid/view/ViewGroup;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/common/app/JecActivity;->a(Landroid/view/ViewGroup;Z)V

    return-void
.end method

.method protected a(Landroid/view/ViewGroup;Z)V
    .locals 3

    if-nez p2, :cond_0

    .line 2
    sget p2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v0, 0x15

    if-lt p2, v0, :cond_0

    return-void

    .line 3
    :cond_0
    invoke-virtual {p0}, Lcom/jecelyin/common/app/JecActivity;->v()Z

    move-result p2

    if-eqz p2, :cond_1

    return-void

    .line 4
    :cond_1
    invoke-virtual {p0}, Landroid/app/Activity;->getTheme()Landroid/content/res/Resources$Theme;

    move-result-object p2

    const/4 v0, 0x1

    new-array v0, v0, [I

    sget v1, Lcom/jecelyin/editor/v2/f;->colorPrimaryDark:I

    const/4 v2, 0x0

    aput v1, v0, v2

    invoke-virtual {p2, v0}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;

    move-result-object p2

    .line 5
    invoke-virtual {p2, v2, v2}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v0

    .line 6
    invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V

    if-eqz p1, :cond_2

    .line 7
    invoke-static {p0, p1, v0, v2}, Lcom/jecelyin/common/view/a;->a(Landroid/app/Activity;Landroid/view/ViewGroup;II)V

    goto :goto_0

    .line 8
    :cond_2
    invoke-static {p0, v0, v2}, Lcom/jecelyin/common/view/a;->b(Landroid/app/Activity;II)V

    :goto_0
    return-void
.end method

.method public a(Lcom/jecelyin/common/app/JecActivity$a;)V
    .locals 1

    .line 9
    iget-object v0, p0, Lcom/jecelyin/common/app/JecActivity;->a:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    return-void

    .line 10
    :cond_0
    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public b(Lcom/jecelyin/common/app/JecActivity$a;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/common/app/JecActivity;->a:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/jecelyin/common/app/JecActivity;->a:Ljava/util/ArrayList;

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/common/app/JecActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 2

    .line 1
    invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/FragmentActivity;->onActivityResult(IILandroid/content/Intent;)V

    .line 2
    iget-object v0, p0, Lcom/jecelyin/common/app/JecActivity;->a:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/jecelyin/common/app/JecActivity$a;

    .line 4
    invoke-interface {v1, p1, p2, p3}, Lcom/jecelyin/common/app/JecActivity$a;->onActivityResult(IILandroid/content/Intent;)V

    goto :goto_0

    :cond_0
    return-void
.end method

.method public onAttachedToWindow()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/app/Activity;->onAttachedToWindow()V

    return-void
.end method

.method public onDetachedFromWindow()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/app/Activity;->onDetachedFromWindow()V

    return-void
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 2

    .line 1
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v1, 0x102002c

    if-eq v0, v1, :cond_0

    .line 2
    invoke-super {p0, p1}, Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result p1

    return p1

    .line 3
    :cond_0
    invoke-virtual {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    const/4 p1, 0x1

    return p1
.end method

.method public setSupportActionBar(Landroidx/appcompat/widget/Toolbar;)V
    .locals 0
    .param p1    # Landroidx/appcompat/widget/Toolbar;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 1
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setSupportActionBar(Landroidx/appcompat/widget/Toolbar;)V

    const/4 p1, 0x0

    .line 2
    invoke-virtual {p0, p1}, Lcom/jecelyin/common/app/JecActivity;->a(Landroid/view/ViewGroup;)V

    return-void
.end method

.method public u()Landroid/content/Context;
    .locals 0

    return-object p0
.end method

.method protected v()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method
